/**
 * @developer：MR·Feng
 * 业务请求方法管理
 */

import Ajax from './baseAjax.js';
import base from './baseUrl.js';

export default {
    getAccount: (params) => Ajax.get(base.Account, params),
    getCompany: (params) => Ajax.get(base.Company, params),
    getBill: (params) => Ajax.get(base.Bill, params),
    getResource: (params) => Ajax.get(base.Resource, params),

    getLogin: (params) => Ajax.formpost(base.Login, params),
    postAccount: (params) => Ajax.formpost(base.Account, params),
    postCompany: (params) => Ajax.formpost(base.Company, params),
    postBill: (params) => Ajax.formpost(base.Bill, params),
    postResourceDel: (params) => Ajax.formpost(base.Resource, params),
    postResource: (params, id) => Ajax.formpost(base.Resourceid + id, params),
    postGetcombill: (params, id) => Ajax.formpost(base.Getcombill, params),
};
